//
//  U9WebViewProgress.h
//  iMobile
//
//  Created by baken on 2016/12/9.
//  Copyright © 2016年 MyApp. All rights reserved.
//

#import <Foundation/Foundation.h>


const float IMInitialProgressValue;
const float IMInteractiveProgressValue;
const float IMFinalProgressValue;

typedef void(^U9WebViewProgressBlock)(float progress);


@protocol U9WebViewProgressDelegate;

@interface U9WebViewProgress : NSObject<WKNavigationDelegate>

@property (nonatomic, weak) id<U9WebViewProgressDelegate> progressDelegate;

@property (nonatomic, weak) id<WKNavigationDelegate> webViewProxyDelegate;

@property (nonatomic, copy) U9WebViewProgressBlock progressBlock;

@property (nonatomic, readonly) float progress;

//- (void)reset;

@end

@protocol U9WebViewProgressDelegate <NSObject>

- (void)webViewProgress:(U9WebViewProgress *)webViewProgress updateProgress:(float)progress;


@end
